﻿
using System;
using System.Threading;

namespace Demo.Test.StackQueue
{
    /// <summary>
    /// 栈 先进后出
    /// </summary>
    public interface IStack<T> where T : class
    {
        /// <summary>
        /// 出栈
        /// </summary>
        /// <param name="node"></param>
        Node<T> Out();

        /// <summary>
        /// 入栈
        /// </summary>
        /// <param name="node"></param>
       void In(Node<T> node);

    }

}
